package com.lcd.ssm.query;

import lombok.Getter;
import lombok.Setter;

@Getter@Setter
public class QueryObject {
    private Integer page;
    private Integer rows;
    public Integer getStart(){
        if (page != null) {
            return (page - 1) * rows;
        }else {
            return 0;
        }
    }
}
